#define index_layout()
#set(uploadPah='/bookmall/upload/')
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">

    <title>#(title)</title>

    <!-- Bootstrap core CSS -->
    <link href="#(ctx)/third/bootstrap/bootstrap.min.css" rel="stylesheet">
 	<link href="#(ctx)/third/bootstrap/bootstrap-theme.min.css" rel="stylesheet">
    <!-- Custom styles for this template -->
    <link href="#(ctx)/css/style.css" rel="stylesheet">
	#@css?()
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>

  <body style="padding-top: 70px;">

    <!-- Fixed navbar -->
    <nav class="navbar navbar-default navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" style="font-weight: bold;" href="#(ctx)">书界商城</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li class="#(menu == 'index' ? 'active':'')"><a href="#(ctx)">首页</a></li>
            <li class="#(menu == 'soldlist' ? 'active':'')"><a href="#(ctx)/soldlist">二手书</a></li>
            <li class="#(menu == 'exchlist' ? 'active':'')"><a href="#(ctx)/exchlist">换书</a></li>
          </ul>
          <ul class="nav navbar-nav navbar-right">
          	<li><a href="#(ctx)/cart"><span class="glyphicon glyphicon-shopping-cart" aria-hidden="true"></span>&nbsp;购物车</a></li>
            #if(session != null && session.session_user != null)
          		<li><a href="#(ctx)/user">欢迎您，#(session.session_user.name)</a></li>
            #else
	            <li><a href="#(ctx)/login">登录</a></li>
	            <li><a href="#(ctx)/login/register">注册</a></li>
	       #end
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </nav>

    <div class="container">
		#@index_main()
    </div> <!-- /container -->
	<div class="container" style="margin-top: 30px;">
		<footer>
        <p class="pull-right"><a href="#">返回顶部</a></p>
        <p>&copy; 2017 书界商城版权所有.</p>
      </footer>
     </div>
    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="#(ctx)/third/jquery/jquery.min.js"></script>
    <script src="#(ctx)/third/bootstrap/bootstrap.min.js"></script>
    <script src="#(ctx)/js/common.js"></script>
    <script src="#(ctx)/js/index.js"></script>
    #@js?()
  </body>
</html>
#end